<#assign classTag=class.getTagByName("hibernate.class")><#t/>
<!DOCTYPE validators PUBLIC 
  		"-//OpenSymphony Group//XWork Validator 1.0//EN" 
  		"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<#list plugin.getClassProperties(class) as property><#t/>
<#assign propertyTag=property.entity.getTagByName("hibernate.property")><#t/>
<#if property.name != "status" && property.name != "createdDate" && property.name != "createdUser" && property.name != "updatedDate" && property.name != "updatedUser"><#t/>
<#if propertyTag.notNull!false ><#t/>
	<field name="${property.entity.propertyName}">
		<field-validator type="required<#if property.entity.propertyType = "java.lang.String">string</#if>">
			<message></message>
		</field-validator>
	</field>
</#if><#t/>
<#if propertyTag.length?? ><#t/>
	<field name="${property.entity.propertyName}">
		<field-validator type="length">
			<param name="maxLength">${propertyTag.length}</param>
			<message></message>
		</field-validator>
	</field>
</#if><#t/>
</#if><#t/>
</#list><#t/>
</validators>

